#@adminLayout()
#define main()
<div class="jbolt_page" data-key="#(pmkey)"  >
    <div class="jbolt_page_title">
        <div class="row">
            <div class="col-4">
                <h1>库存修改日志表</h1>
                <span> #(pageData.totalRow?? 0) 条记录</span>
            </div>
            <div class="col-5">
                <form class="form-inline" id="memberFormIndex" action="/auth/mall/stock_log"  data-pjaxsubmit  method="get">
                    <input type="text" autocomplete="off"  class="form-control"  placeholder="输入关键字搜索" id="keywords" name="keywords" value="#(keywords??)" />
                    <select class="form-control ml-1"   data-url="/auth/mall/member_log/on_time" id="changeTime" name="changeTime" data-autoload data-text="=请选择时间段=" data-value="" data-select="#(changeTime??)"></select>

                    <button  type="submit" class="btn btn-light" ><i class="fa fa-search"></i> 查询</button>
                    <button  onclick="TestOrderreset()" data-handler="reloadCurrentPage" class="btn btn-light" ><i class="fa fa-refresh"></i> 重置</button>
                </form>
            </div>
        </div>
    </div>
    <div class="jbolt_page_content">
        <div class="table-responsive">
            <table class="table table-bordered table-hover table-striped table-center">
                <thead>
                <tr>
                    <th style="width: 60px">序号</th>
                    <th style="width: 60px">改变数值</th><th style="width: 100px">修改商品</th>
                    <th style="width: 100px">操作者</th><th style="width: 100px">修改时间</th>
                    <th  style="width: 160px">修改状态</th>

                </tr>
                </thead>
                <tbody>
                #if(pageData)
                #for(data:pageData.list)
                <tr>
                    <td>#(for.index+1)</td>
                    <td>#(data.amount??)</td>
                    <td>#(data.commodity_name??)</td>
                    <td>#(MyUtil.get_log_user(data.operator??))</td>
                    <td>#(MyUtil.get_date(data.change_time??))</td>
                    <td>#(MyUtil.get_change_type_name(data.change_type??))</td>




                </tr>
                #end
                #end
                </tbody>
            </table>
        </div>
        #include("/_view/_admin/common/_page.html",pageEleId="memberPageIndex")
    </div>
</div>
</div>
</div>
#end
#define js()
<script type="text/javascript">

    var memberFormIndex=$("#memberFormIndex");

    $(function(){
        initPage("memberPageIndex",#(pageData.totalPage??),#(pageData.pageNumber??),"memberFormIndex");
    });


    /**
     * 普通查询
     */
    function normaMemberlData(){
        memberFormIndex.find("[name='isDelete']").val(false);
        memberFormIndex.submit();
    }

    function TestOrderreset() {
        document.getElementById("keywords").value="";
        document.getElementById("changeTime").value="";
    }



</script>



#end

